package com.shihb.structuralpatterns.flyweightpattern;/**
 *Description:
 *Version:1.0.0
 *@author shihb
 *@date 2020/7/20 21:42
 */
public class Client {

  public static void main(String[] args) {
    WebsiteFactory factory = new WebsiteFactory();
    factory.getWebsite("新闻").use(new User("shb"));
    factory.getWebsite("博客").use(new User("cl"));
    factory.getWebsite("博客").use(new User("test1"));
    factory.getWebsite("新闻").use(new User("test2"));

    factory.printMapSize();
  }
}
